package Scan;

import java.util.Scanner;

public class CommandBySwich {
    public static void main(String[] args) {
        Scanner bba = new Scanner(System.in);
        System.out.println("请选择业务；1:存钱,2:取款,3:转账,4:退出");
        int command = bba.nextInt();
        if (command==1){
            System.out.println("存钱业务...");
        }else {
            System.out.println("转账业务...");
        }if (command==3){
            System.out.println("转账业务....");
        }
























        /*switch (command){
            case 1:
                System.out.println("存钱业务...");
                break;
            case 2:
                System.out.println("取款业务...");
                break;
            case 3:
                System.out.println("转账业务...");
                break;
            case 4:
                System.out.println("退出成功...");
                break;
            default:
                System.out.println("输入错误");*/
        }





    }

